/*
 * @Author: 飞越疯人院 353362604@qq.com
 * @Date: 2022-09-22 09:44:20
 * @LastEditors: 飞越疯人院 353362604@qq.com
 * @LastEditTime: 2023-01-09 16:43:15
 * @FilePath: \adminstration\src\Common\Modal\ThrModalList\SampleEnclosure.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { commonTableList, BuiltInData } from '../config'

export const ProjectSetUp = async ({ data }) => {
    console.log(data)
    let dataList = {
        url: 'ProjectSetUp',
        uuid: data.organizationUuid,
        type: '公司菜单配置',
        width: 600,
        classification: 'FormModal',
        hideInSearch: true,
        pageSize: 10,
        params: {},
        added: 'posProjectMenu',
        additional: { OrganizationUuid: data.organizationUuid },
        columns: [
            { ...commonTableList.tableName, title: '菜单名称', className: 'RemarkForm', width: 300 },
            {
                dataIndex: 'url',
                title: '菜单路径',
                valueType: 'select',
                className: 'RemarkForm',
                valueEnum: BuiltInData.ProjectMenuList,
                rules: true,
                width: 150,
            },
            { ...commonTableList.sortId, className: 'RemarkForm', width: 300 },
        ],
    }
    return dataList
}
